package com.coderknock.spring.boot.mybatis.model;

import org.apache.ibatis.type.MappedJdbcTypes;

import java.util.Date;

public class Article {
    private Integer id;

    private Integer author;

    private Boolean permission;

    private String contextPath;

    private String url;

    private Boolean status;

    private String intro;

    private Date modifyTime;

    private Date createTime;

    private String titleText;

    private Integer pv;

    private Integer dislikeNum;

    private Integer likeNum;
    
    private String articleType;

    public Article(Integer id, Integer author, Boolean permission, String contextPath, String url, Boolean status, String intro, Date modifyTime, Date createTime, String titleText, Integer pv, Integer dislikeNum, Integer likeNum, String articleType) {
        this.id = id;
        this.author = author;
        this.permission = permission;
        this.contextPath = contextPath;
        this.url = url;
        this.status = status;
        this.intro = intro;
        this.modifyTime = modifyTime;
        this.createTime = createTime;
        this.titleText = titleText;
        this.pv = pv;
        this.dislikeNum = dislikeNum;
        this.likeNum = likeNum;
        this.articleType = articleType;
    }

    public Article() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAuthor() {
        return author;
    }

    public void setAuthor(Integer author) {
        this.author = author;
    }

    public Boolean getPermission() {
        return permission;
    }

    public void setPermission(Boolean permission) {
        this.permission = permission;
    }

    public String getContextPath() {
        return contextPath;
    }

    public void setContextPath(String contextPath) {
        this.contextPath = contextPath == null ? null : contextPath.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro == null ? null : intro.trim();
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getTitleText() {
        return titleText;
    }

    public void setTitleText(String titleText) {
        this.titleText = titleText == null ? null : titleText.trim();
    }

    public Integer getPv() {
        return pv;
    }

    public void setPv(Integer pv) {
        this.pv = pv;
    }

    public Integer getDislikeNum() {
        return dislikeNum;
    }

    public void setDislikeNum(Integer dislikeNum) {
        this.dislikeNum = dislikeNum;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Integer likeNum) {
        this.likeNum = likeNum;
    }

    public String getArticleType() {
        return articleType;
    }

    public void setArticleType(String articleType) {
        this.articleType = articleType;
    }
}